package com.wan.commonsdk;

import java.io.Serializable;

public class PayInfo implements Serializable{

	private static final long serialVersionUID = 173949708030481714L;
	private static final String key = "213#@#ASDsds87332789hIooNm23424fsfnfggslkj(*jfksfjiKHJOogbnrioadsfkjbX";
	private String client_id;
	private String client_secret;
	private String sign;
	private String gamename;// 游戏简称 英文
	private String gameName;//游戏名陈 中文
	private String server;
	private String access_token;
	private String itemid = "";
	private String subject = "";
	private String body = "";
	private String tradeno = "";
	private String fixed_money;
	private String game_money;
	private String trade_id;
	private String tradename = "支付宝客户端充值";
	private int wan_type = WanCommonSdk.FIXED_MONEY_TYPE;
	private String extrastr;
	private String testserver;
	private String itemname;
	private YHQInfo yhqInfo;
	private String czbl;
	
	public String getCzbl() {
		return czbl;
	}

	public void setCzbl(String czbl) {
		this.czbl = czbl;
	}

	public String getExtrastr() {
		return extrastr;
	}

	public void setExtrastr(String extrastr) {
		this.extrastr = extrastr;
	}

	public String getTestserver() {
		return testserver;
	}

	public void setTestserver(String testserver) {
		this.testserver = testserver;
	}

	public String getItemname() {
		return itemname;
	}

	public void setItemname(String itemname) {
		this.itemname = itemname;
	}

	public String getKey()
	{
		return this.key;
	}
	
	public String getClientid()
	{
		return this.client_id;
	}
	
	public void setClientid(String client_id)
	{
		this.client_id = client_id;
	}
	
	public String getClientsecret()
	{
		return this.client_secret;
	}
	
	public void setClientsecret(String client_secret)
	{
		this.client_secret = client_secret;
	}
	
	public String getSign(String username,String gamemoney,String paymoney)
	{
		String need_sign = "key=" + this.key + "&" + this.gamename + "&" + this.server + "&" + 
				paymoney + "&" + gamemoney + "&" + username + "&" + 
				this.trade_id + "&" + Conet.mWanAppInfo.getPlatformgid();
		this.sign = MD5Utils.getMD5(need_sign);
		//Log.i("加密qian的：", need_sign);
		//Log.i("加密后的�?", this.sign);
		return this.sign;
	}
	
	public String getGameabbr()
	{
		return this.gamename;
	}
	
	public void setGameabbr(String gamename)
	{
		this.gamename = gamename;
	}
	
	public String getGamename()
	{
		return this.gameName;
	}
	
	public void setGamename(String gamename)
	{
		this.gameName = gamename;
	}
	
	public String getServer()
	{
		return this.server;
	}
	
	public void setServer(String server)
	{
		this.server = server;
	}
	
	public String getAcesstoken()
	{
		return this.access_token;
	}
	
	public void setAcesstoken(String access_token)
	{
		this.access_token = access_token;
	}
	
	public String getItemid()
	{
		return this.itemid;
	}
	
	public void setItemid(String itemid)
	{
		this.itemid = itemid;
	}
	
	public String getFixedmoney()
	{
		return this.fixed_money;
	}
	
	public void setFixedmoney(String fixed_money)
	{
		this.fixed_money = fixed_money;
	}
	
	public int getWantype()
	{
		return this.wan_type;
	}
	
	public void setWantype(int wan_type)
	{
		this.wan_type = wan_type;
	}
	
	public String getSubject()
	{
		return this.subject;
	}
	
	public void setSubject(String subject)
	{
		this.subject = subject;
	}
	
	public String getBody()
	{
		return this.body;
	}
	
	public void setBody(String body)
	{
		this.body = body;
	}
	
	public String getTradeno()
	{
		return this.tradeno;
	}
	
	public void setTradeno(String tradeno)
	{
		this.tradeno = tradeno;
	}
	
	public String getTradeid()
	{
		return this.trade_id;
	}
	
	public void setTradeid(String trade_id)
	{
		this.trade_id = trade_id;
	}
	
	public String getTradename()
	{
		return this.tradename;
	}
	
	public void setTradename(String tradename)
	{
		this.tradename = tradename;
		
	}
	

	public YHQInfo getYhqInfo() {
		return yhqInfo;
	}

	public void setYhqInfo(YHQInfo yhqInfo) {
		this.yhqInfo = yhqInfo;
	}
}
